package org.opensuse.bs.ui;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.console.IConsoleConstants;

public class BSPerspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();

		IFolderLayout left = layout.createFolder("Left", IPageLayout.LEFT, 0.25f,
			editorArea);
		left.addView("org.opensuse.bs.ui.views.remote");
		left.addView("org.opensuse.bs.ui.views.local");

		IFolderLayout bottom = layout.createFolder("Bottom", IPageLayout.BOTTOM, 0.66f, editorArea);
		bottom.addView("org.opensuse.bs.ui.views.properties");
		bottom.addView("org.opensuse.bs.ui.views.history");
		bottom.addView("org.opensuse.bs.ui.views.Build");
		bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
	}

}
